@hdnax/sqlingo.js 0.0.4 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/README.md +8 -14
- package/README.npm.md +8 -14
- package/README.repo.md +1 -2
- package/dist/chunk-2YNOERAO.cjs +2 -0
- package/dist/chunk-2YNOERAO.cjs.map +1 -0
- package/dist/chunk-2Z3O2CFM.cjs +19 -0
- package/dist/chunk-2Z3O2CFM.cjs.map +1 -0
- package/dist/chunk-4ZMKB6PV.cjs +2 -0
- package/dist/chunk-4ZMKB6PV.cjs.map +1 -0
- package/dist/chunk-53OWF4GG.js +2 -0
- package/dist/chunk-53OWF4GG.js.map +1 -0
- package/dist/chunk-C4CLTVOW.cjs +2 -0
- package/dist/chunk-C4CLTVOW.cjs.map +1 -0
- package/dist/chunk-DOKMTZYO.cjs +4 -0
- package/dist/chunk-DOKMTZYO.cjs.map +1 -0
- package/dist/chunk-FCGUTI7Y.js +2 -0
- package/dist/chunk-FCGUTI7Y.js.map +1 -0
- package/dist/chunk-IPCIXWCY.js +2 -0
- package/dist/chunk-IPCIXWCY.js.map +1 -0
- package/dist/chunk-KCNOE4DZ.js +19 -0
- package/dist/chunk-KCNOE4DZ.js.map +1 -0
- package/dist/chunk-NRJHX2GZ.js +2 -0
- package/dist/chunk-NRJHX2GZ.js.map +1 -0
- package/dist/chunk-O2J5RKBN.js +2 -0
- package/dist/chunk-O2J5RKBN.js.map +1 -0
- package/dist/chunk-PXUASP5I.js +2 -0
- package/dist/chunk-PXUASP5I.js.map +1 -0
- package/dist/chunk-R7C3ZHVK.cjs +2 -0
- package/dist/chunk-R7C3ZHVK.cjs.map +1 -0
- package/dist/chunk-UHWHUDLE.cjs +2 -0
- package/dist/chunk-UHWHUDLE.cjs.map +1 -0
- package/dist/chunk-WRNYJ54A.cjs +2 -0
- package/dist/chunk-WRNYJ54A.cjs.map +1 -0
- package/dist/chunk-XZQFOICX.cjs +3 -0
- package/dist/chunk-XZQFOICX.cjs.map +1 -0
- package/dist/chunk-YLOQRUXC.js +2 -0
- package/dist/chunk-YLOQRUXC.js.map +1 -0
- package/dist/chunk-YSS2WVCM.cjs +2 -0
- package/dist/chunk-YSS2WVCM.cjs.map +1 -0
- package/dist/chunk-Z5V6VOIN.js +3 -0
- package/dist/chunk-Z5V6VOIN.js.map +1 -0
- package/dist/chunk-ZBFGQPJR.js +4 -0
- package/dist/chunk-ZBFGQPJR.js.map +1 -0
- package/dist/dialects/athena.cjs +2 -0
- package/dist/dialects/athena.cjs.map +1 -0
- package/dist/dialects/athena.d.cts +66 -0
- package/dist/dialects/athena.d.ts +66 -0
- package/dist/dialects/athena.js +2 -0
- package/dist/dialects/athena.js.map +1 -0
- package/dist/dialects/bigquery.cjs +3 -0
- package/dist/dialects/bigquery.cjs.map +1 -0
- package/dist/dialects/bigquery.d.cts +651 -0
- package/dist/dialects/bigquery.d.ts +651 -0
- package/dist/dialects/bigquery.js +3 -0
- package/dist/dialects/bigquery.js.map +1 -0
- package/dist/dialects/clickhouse.cjs +2 -0
- package/dist/dialects/clickhouse.cjs.map +1 -0
- package/dist/dialects/clickhouse.d.cts +634 -0
- package/dist/dialects/clickhouse.d.ts +634 -0
- package/dist/dialects/clickhouse.js +2 -0
- package/dist/dialects/clickhouse.js.map +1 -0
- package/dist/dialects/databricks.cjs +2 -0
- package/dist/dialects/databricks.cjs.map +1 -0
- package/dist/dialects/databricks.d.cts +484 -0
- package/dist/dialects/databricks.d.ts +484 -0
- package/dist/dialects/databricks.js +2 -0
- package/dist/dialects/databricks.js.map +1 -0
- package/dist/dialects/doris.cjs +2 -0
- package/dist/dialects/doris.cjs.map +1 -0
- package/dist/dialects/doris.d.cts +484 -0
- package/dist/dialects/doris.d.ts +484 -0
- package/dist/dialects/doris.js +2 -0
- package/dist/dialects/doris.js.map +1 -0
- package/dist/dialects/dremio.cjs +2 -0
- package/dist/dialects/dremio.cjs.map +1 -0
- package/dist/dialects/dremio.d.cts +522 -0
- package/dist/dialects/dremio.d.ts +522 -0
- package/dist/dialects/dremio.js +2 -0
- package/dist/dialects/dremio.js.map +1 -0
- package/dist/dialects/drill.cjs +2 -0
- package/dist/dialects/drill.cjs.map +1 -0
- package/dist/dialects/drill.d.cts +512 -0
- package/dist/dialects/drill.d.ts +512 -0
- package/dist/dialects/drill.js +2 -0
- package/dist/dialects/drill.js.map +1 -0
- package/dist/dialects/druid.cjs +2 -0
- package/dist/dialects/druid.cjs.map +1 -0
- package/dist/dialects/druid.d.cts +17 -0
- package/dist/dialects/druid.d.ts +17 -0
- package/dist/dialects/druid.js +2 -0
- package/dist/dialects/druid.js.map +1 -0
- package/dist/dialects/duckdb.cjs +86 -0
- package/dist/dialects/duckdb.cjs.map +1 -0
- package/dist/dialects/duckdb.d.cts +756 -0
- package/dist/dialects/duckdb.d.ts +756 -0
- package/dist/dialects/duckdb.js +86 -0
- package/dist/dialects/duckdb.js.map +1 -0
- package/dist/dialects/dune.cjs +2 -0
- package/dist/dialects/dune.cjs.map +1 -0
- package/dist/dialects/dune.d.cts +21 -0
- package/dist/dialects/dune.d.ts +21 -0
- package/dist/dialects/dune.js +2 -0
- package/dist/dialects/dune.js.map +1 -0
- package/dist/dialects/exasol.cjs +2 -0
- package/dist/dialects/exasol.cjs.map +1 -0
- package/dist/dialects/exasol.d.cts +507 -0
- package/dist/dialects/exasol.d.ts +507 -0
- package/dist/dialects/exasol.js +2 -0
- package/dist/dialects/exasol.js.map +1 -0
- package/dist/dialects/fabric.cjs +2 -0
- package/dist/dialects/fabric.cjs.map +1 -0
- package/dist/dialects/fabric.d.cts +463 -0
- package/dist/dialects/fabric.d.ts +463 -0
- package/dist/dialects/fabric.js +2 -0
- package/dist/dialects/fabric.js.map +1 -0
- package/dist/dialects/hive.cjs +2 -0
- package/dist/dialects/hive.cjs.map +1 -0
- package/dist/dialects/hive.d.cts +585 -0
- package/dist/dialects/hive.d.ts +585 -0
- package/dist/dialects/hive.js +2 -0
- package/dist/dialects/hive.js.map +1 -0
- package/dist/dialects/materialize.cjs +2 -0
- package/dist/dialects/materialize.cjs.map +1 -0
- package/dist/dialects/materialize.d.cts +890 -0
- package/dist/dialects/materialize.d.ts +890 -0
- package/dist/dialects/materialize.js +2 -0
- package/dist/dialects/materialize.js.map +1 -0
- package/dist/dialects/mysql.cjs +2 -0
- package/dist/dialects/mysql.cjs.map +1 -0
- package/dist/dialects/mysql.d.cts +292 -0
- package/dist/dialects/mysql.d.ts +292 -0
- package/dist/dialects/mysql.js +2 -0
- package/dist/dialects/mysql.js.map +1 -0
- package/dist/dialects/oracle.cjs +2 -0
- package/dist/dialects/oracle.cjs.map +1 -0
- package/dist/dialects/oracle.d.cts +539 -0
- package/dist/dialects/oracle.d.ts +539 -0
- package/dist/dialects/oracle.js +2 -0
- package/dist/dialects/oracle.js.map +1 -0
- package/dist/dialects/postgres.cjs +2 -0
- package/dist/dialects/postgres.cjs.map +1 -0
- package/dist/dialects/postgres.d.cts +587 -0
- package/dist/dialects/postgres.d.ts +587 -0
- package/dist/dialects/postgres.js +2 -0
- package/dist/dialects/postgres.js.map +1 -0
- package/dist/dialects/presto.cjs +2 -0
- package/dist/dialects/presto.cjs.map +1 -0
- package/dist/dialects/presto.d.cts +173 -0
- package/dist/dialects/presto.d.ts +173 -0
- package/dist/dialects/presto.js +2 -0
- package/dist/dialects/presto.js.map +1 -0
- package/dist/dialects/prql.cjs +2 -0
- package/dist/dialects/prql.cjs.map +1 -0
- package/dist/dialects/prql.d.cts +496 -0
- package/dist/dialects/prql.d.ts +496 -0
- package/dist/dialects/prql.js +2 -0
- package/dist/dialects/prql.js.map +1 -0
- package/dist/dialects/redshift.cjs +2 -0
- package/dist/dialects/redshift.cjs.map +1 -0
- package/dist/dialects/redshift.d.cts +132 -0
- package/dist/dialects/redshift.d.ts +132 -0
- package/dist/dialects/redshift.js +2 -0
- package/dist/dialects/redshift.js.map +1 -0
- package/dist/dialects/risingwave.cjs +2 -0
- package/dist/dialects/risingwave.cjs.map +1 -0
- package/dist/dialects/risingwave.d.cts +478 -0
- package/dist/dialects/risingwave.d.ts +478 -0
- package/dist/dialects/risingwave.js +2 -0
- package/dist/dialects/risingwave.js.map +1 -0
- package/dist/dialects/singlestore.cjs +2 -0
- package/dist/dialects/singlestore.cjs.map +1 -0
- package/dist/dialects/singlestore.d.cts +73 -0
- package/dist/dialects/singlestore.d.ts +73 -0
- package/dist/dialects/singlestore.js +2 -0
- package/dist/dialects/singlestore.js.map +1 -0
- package/dist/dialects/snowflake.cjs +3 -0
- package/dist/dialects/snowflake.cjs.map +1 -0
- package/dist/dialects/snowflake.d.cts +320 -0
- package/dist/dialects/snowflake.d.ts +320 -0
- package/dist/dialects/snowflake.js +3 -0
- package/dist/dialects/snowflake.js.map +1 -0
- package/dist/dialects/solr.cjs +2 -0
- package/dist/dialects/solr.cjs.map +1 -0
- package/dist/dialects/solr.d.cts +458 -0
- package/dist/dialects/solr.d.ts +458 -0
- package/dist/dialects/solr.js +2 -0
- package/dist/dialects/solr.js.map +1 -0
- package/dist/dialects/spark.cjs +2 -0
- package/dist/dialects/spark.cjs.map +1 -0
- package/dist/dialects/spark.d.cts +484 -0
- package/dist/dialects/spark.d.ts +484 -0
- package/dist/dialects/spark.js +2 -0
- package/dist/dialects/spark.js.map +1 -0
- package/dist/dialects/spark2.cjs +2 -0
- package/dist/dialects/spark2.cjs.map +1 -0
- package/dist/dialects/spark2.d.cts +486 -0
- package/dist/dialects/spark2.d.ts +486 -0
- package/dist/dialects/spark2.js +2 -0
- package/dist/dialects/spark2.js.map +1 -0
- package/dist/dialects/sqlite.cjs +2 -0
- package/dist/dialects/sqlite.cjs.map +1 -0
- package/dist/dialects/sqlite.d.cts +510 -0
- package/dist/dialects/sqlite.d.ts +510 -0
- package/dist/dialects/sqlite.js +2 -0
- package/dist/dialects/sqlite.js.map +1 -0
- package/dist/dialects/starrocks.cjs +2 -0
- package/dist/dialects/starrocks.cjs.map +1 -0
- package/dist/dialects/starrocks.d.cts +518 -0
- package/dist/dialects/starrocks.d.ts +518 -0
- package/dist/dialects/starrocks.js +2 -0
- package/dist/dialects/starrocks.js.map +1 -0
- package/dist/dialects/tableau.cjs +2 -0
- package/dist/dialects/tableau.cjs.map +1 -0
- package/dist/dialects/tableau.d.cts +466 -0
- package/dist/dialects/tableau.d.ts +466 -0
- package/dist/dialects/tableau.js +2 -0
- package/dist/dialects/tableau.js.map +1 -0
- package/dist/dialects/teradata.cjs +2 -0
- package/dist/dialects/teradata.cjs.map +1 -0
- package/dist/dialects/teradata.d.cts +539 -0
- package/dist/dialects/teradata.d.ts +539 -0
- package/dist/dialects/teradata.js +2 -0
- package/dist/dialects/teradata.js.map +1 -0
- package/dist/dialects/trino.cjs +2 -0
- package/dist/dialects/trino.cjs.map +1 -0
- package/dist/dialects/trino.d.cts +465 -0
- package/dist/dialects/trino.d.ts +465 -0
- package/dist/dialects/trino.js +2 -0
- package/dist/dialects/trino.js.map +1 -0
- package/dist/dialects/tsql.cjs +2 -0
- package/dist/dialects/tsql.cjs.map +1 -0
- package/dist/dialects/tsql.d.cts +703 -0
- package/dist/dialects/tsql.d.ts +703 -0
- package/dist/dialects/tsql.js +2 -0
- package/dist/dialects/tsql.js.map +1 -0
- package/dist/index.cjs +5 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -14178
- package/dist/index.d.ts +3 -14178
- package/dist/index.js +5 -25
- package/dist/index.js.map +1 -1
- package/dist/tokens-VcMD09XM.d.cts +15805 -0
- package/dist/tokens-VcMD09XM.d.ts +15805 -0
- package/package.json +171 -5
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["/home/huydna/projects/sqlingo.js/dist/dialects/doris.cjs","../../src/dialects/doris.ts"],"names":["lagLeadSql","expression","LagExpr","LiteralExpr","null_","buildDateTrunc","args","a0","seqGet","a1","isUnitLike","e","text","unit","thisNode","TimestampTruncExpr","DorisTokenizer","MySQL","_PROPERTY_PARSERS_dec","_FUNCTION_PARSERS_dec","_FUNCTIONS_dec","_NO_PAREN_FUNCTIONS_dec","_ID_VAR_TOKENS_dec","_a","_init","DorisParser","cache","Parser","noParenFunctions","ArrayUniqueAggExpr","EuclideanDistanceExpr","AddMonthsExpr","RegexpLikeExpr","TsOrDsToDateExpr","parsers","UniqueKeyPropertyExpr","expr","PropertyExpr","createExpressions","PartitionByRangePropertyExpr","start","end","number","every","IntervalExpr","PartitionByRangePropertyDynamicExpr","PartitionExpr","name","values","partRange","PartitionRangeExpr","BuildPropertyExpr","method","kind","starts","RefreshTriggerPropertyExpr","__decoratorStart","__decorateElement","__decoratorMetadata","__runInitializers","_RESERVED_KEYWORDS_dec","_ORIGINAL_TRANSFORMS_dec","_TIMESTAMP_FUNC_TYPES_dec","_CAST_MAPPING_dec","_PROPERTIES_LOCATION_dec","_TYPE_MAPPING_dec","_AFTER_HAVING_MODIFIER_TRANSFORMS_dec","DorisGenerator","modifiers","m","PartitionedByPropertyExpr","renameFunc","ApproxDistinctExpr","approxCountDistinctSql","ArgMaxExpr","ArgMinExpr","ArrayAggExpr","ArrayToStringExpr","CurrentDateExpr","CurrentTimestampExpr","DateTruncExpr","unitToStr","GroupConcatExpr","JsonExtractScalarExpr","LeadExpr","MapExpr","RegexpSplitExpr","SchemaCommentPropertyExpr","SplitExpr","StringToArrayExpr","StrToUnixExpr","TimeStrToDateExpr","TsOrDsAddExpr","TimeToUnixExpr","UnixToStrExpr","timeFormat","UnixToTimeExpr","options","prefix","createStmt","CreateExpr","MaterializedPropertyExpr","valuesSql","inner","v","interval"],"mappings":"AAAA,0uBAAyC,yDAA0gB,SCgF1iBA,EAAAA,CAA6BC,CAAAA,CAAwC,CAC5E,OAAO,IAAA,CAAK,IAAA,CACVA,EAAAA,WAAsBC,oBAAAA,CAAU,KAAA,CAAQ,MAAA,CACxC,CACED,CAAAA,CAAW,IAAA,CAAK,IAAA,kBAChBA,CAAAA,CAAW,IAAA,CAAK,MAAA,SAAUE,oBAAAA,CAAY,MAAA,CAAO,CA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cAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CACA,SAAA,CACA,UAAA,CACA,UAAA,CACA,YAAA,CACA,QAAA,CACA,YAAA,CACA,QAAA,CACA,KAAA,CACA,UAAA,CACA,UAAA,CACA,SAAA,CACA,WAAA,CACA,WAAA,CACA,cAAA,CACA,SAAA,CACA,UAAA,CACA,QAAA,CACA,QAAA,CACA,MAAA,CACA,UAAA,CACA,UAAA,CACA,MAAA,CACA,UAAA,CACA,YAAA,CACA,cAAA,CACA,aAAA,CACA,cAAA,CACA,KAAA,CACA,IAAA,CACA,yBAAA,CACA,QAAA,CACA,MAAA,CACA,OAAA,CACA,MAAA,CACA,WAAA,CACA,SAAA,CACA,MAAA,CACA,QAAA,CACA,YAAA,CACA,aAAA,CACA,KAAA,CACA,MAAA,CACA,QAAA,CACA,SAAA,CACA,OAAA,CACA,QAAA,CACA,QAAA,CACA,OAAA,CACA,QAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,SAAA,CACA,SAAA,CACA,QAAA,CACA,UAAA,CACA,UAAA,CACA,SAAA,CACA,uBAAA,CACA,OAAA,CACA,MAAA,CACA,SAAA,CACA,QAAA,CACA,MAAA,CACA,QAAA,CACA,OAAA,CACA,OAAA,CACA,UAAA,CACA,WAAA,CACA,KAAA,CACA,SAAA,CACA,OAAA,CACA,QAAA,CACA,MAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,MAAA,CACA,UAAA,CACA,WAAA,CACA,SAAA,CACA,QAAA,CACA,OAAA,CACA,QAAA,CACA,OAAA,CACA,OAAA,CACA,UAAA,CACA,QAAA,CACA,MAAA,CACA,QAAA,CACA,MAAA,CACA,MAAA,CACA,WAAA,CACA,KAAA,CACA,WAAA,CACA,UAAA,CACA,MAAA,CACA,KAAA,CACA,YAAA,CACA,IAAA,CACA,QAAA,CACA,WAAA,CACA,IAAA,CACA,aAAA,CACA,OAAA,CACA,SAAA,CACA,QAAA,CACA,OAAA,CACA,QAAA,CACA,SAAA,CACA,KAAA,CACA,SAAA,CACA,cAAA,CACA,WAAA,CACA,UAAA,CACA,MAAA,CACA,UAAA,CACA,MAAA,CACA,MAAA,CACA,IAAA,CACA,kBAAA,CACA,cAAA,CACA,QAAA,CACA,WAAA,CACA,KAAA,CACA,MAAA,CACA,MAAA,CACA,MAAA,CACA,OAAA,CACA,KAAA,CACA,MAAA,CACA,MAAA,CACA,OAAA,CACA,UAAA,CACA,MAAA,CACA,SAAA,CACA,MAAA,CACA,qBAAA,CACA,MAAA,CACA,MAAA,CACA,OAAA,CACA,MAAA,CACA,OAAA,CACA,OAAA,CACA,MAAA,CACA,MAAA,CACA,MAAA,CACA,OAAA,CACA,WAAA,CACA,gBAAA,CACA,UAAA,CACA,MAAA,CACA,SAAA,CACA,cAAA,CACA,QAAA,CACA,KAAA,CACA,OAAA,CACA,WAAA,CACA,WAAA,CACA,cAAA,CACA,mBAAA,CACA,qBAAA,CACA,cAAA,CACA,cAAA,CACA,KAAA,CACA,UAAA,CACA,MAAA,CACA,OAAA,CACA,SAAA,CACA,YAAA,CACA,KAAA,CACA,OAAA,CACA,QAAA,CACA,QAAA,CACA,OAAA,CACA,MAAA,CACA,MAAA,CACA,OAAA,CACA,SAAA,CACA,UAAA,CACA,OAAA,CACA,MAAA,CACA,UAAA,CACA,IAAA,CACA,cAAA,CACA,KAAA,CACA,MAAA,CACA,OAAA,CACA,UAAA,CACA,IAAA,CACA,QAAA,CACA,IAAA,CACA,MAAA,CACA,MAAA,CACA,WAAA,CACA,IAAA,CACA,OAAA,CACA,OAAA,CACA,SAAA,CACA,MAAA,CACA,WAAA,CACA,WAAA,CACA,QAAA,CACA,WAAA,CACA,YAAA,CACA,UAAA,CACA,iBAAA,CACA,kBAAA,CACA,oBAAA,CACA,gBAAA,CACA,MAAA,CACA,OAAA,CACA,SAAA,CACA,QAAA,CACA,YAAA,CACA,UAAA,CACA,MAAA,CACA,SAAA,CACA,QAAA,CACA,SAAA,CACA,QAAA,CACA,WAAA,CACA,SAAA,CACA,SAAA,CACA,MAAA,CACA,WAAA,CACA,aAAA,CACA,SAAA,CACA,YAAA,CACA,UAAA,CACA,gBAAA,CACA,gBAAA,CACA,OAAA,CACA,OAAA,CACA,QAAA,CACA,OAAA,CACA,MAAA,CACA,MAAA,CACA,WAAA,CACA,SAAA,CACA,SAAA,CACA,SAAA,CACA,YAAA,CACA,QAAA,CACA,SAAA,CACA,QAAA,CACA,QAAA,CACA,YAAA,CACA,SAAA,CACA,qBAAA,CACA,SAAA,CACA,cAAA,CACA,YAAA,CACA,UAAA,CACA,WAAA,CACA,SAAA,CACA,aAAA,CACA,QAAA,CACA,SAAA,CACA,QAAA,CACA,WAAA,CACA,OAAA,CACA,OAAA,CACA,MAAA,CACA,OAAA,CACA,UAAA,CACA,QAAA,CACA,SAAA,CACA,KAAA,CACA,MAAA,CACA,IAAA,CACA,QAAA,CACA,UAAA,CACA,WAAA,CACA,QAAA,CACA,SAAA,CACA,QAAA,CACA,QAAA,CACA,MAAA,CACA,UAAA,CACA,cAAA,CACA,SAAA,CACA,KAAA,CACA,MAAA,CACA,OAAA,CACA,MAAA,CACA,QAAA,CACA,MAAA,CACA,UAAA,CACA,UAAA,CACA,QAAA,CACA,OAAA,CACA,gBAAA,CACA,OAAA,CACA,QAAA,CACA,OAAA,CACA,QAAA,CACA,MAAA,CACA,SAAA,CACA,QAAA,CACA,WAAA,CACA,QAAA,CACA,QAAA,CACA,SAAA,CACA,KAAA,CACA,WAAA,CACA,QAAA,CACA,MAAA,CACA,QAAA,CACA,OAAA,CACA,QAAA,CACA,aAAA,CACA,QAAA,CACA,SAAA,CACA,MAAA,CACA,OAAA,CACA,WAAA,CACA,YAAA,CACA,MAAA,CACA,MAAA,CACA,MAAA,CACA,MAAA,CACA,WAAA,CACA,cAAA,CACA,eAAA,CACA,SAAA,CACA,IAAA,CACA,aAAA,CACA,OAAA,CACA,MAAA,C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import {\n cache,\n} from '../port_internals';\nimport type {\n Expression, TableExpr,\n} from '../expressions';\nimport {\n ApproxDistinctExpr,\n ArgMaxExpr,\n ArgMinExpr,\n ArrayAggExpr,\n ArrayToStringExpr,\n CurrentDateExpr,\n CurrentTimestampExpr,\n DateTruncExpr,\n GroupConcatExpr,\n LeadExpr,\n MapExpr,\n RegexpSplitExpr,\n SchemaCommentPropertyExpr,\n SplitExpr,\n TsOrDsAddExpr,\n BuildPropertyExpr,\n PartitionByRangePropertyDynamicExpr,\n PartitionExpr,\n PartitionRangeExpr,\n RefreshTriggerPropertyExpr,\n LagExpr,\n TimestampTruncExpr,\n LiteralExpr,\n null_,\n ArrayUniqueAggExpr,\n EuclideanDistanceExpr,\n AddMonthsExpr,\n RegexpLikeExpr,\n TsOrDsToDateExpr,\n UniqueKeyPropertyExpr,\n PropertyExpr,\n PartitionByRangePropertyExpr,\n IntervalExpr,\n DataTypeExprKind,\n PropertiesLocation,\n PartitionedByPropertyExpr,\n UnixToStrExpr,\n TimeToUnixExpr,\n UnixToTimeExpr,\n TimeStrToDateExpr,\n StringToArrayExpr,\n StrToUnixExpr,\n JsonExtractScalarExpr,\n SelectExpr,\n DeleteExpr,\n UpdateExpr,\n SchemaExpr,\n CreateExpr,\n MaterializedPropertyExpr,\n} from '../expressions';\nimport {\n seqGet,\n} from '../helper';\nimport {\n Parser,\n} from '../parser';\nimport {\n TokenType,\n} from '../tokens';\nimport type {\n Generator,\n} from '../generator';\nimport {\n MySQL,\n} from './mysql';\nimport {\n approxCountDistinctSql,\n Dialect, Dialects,\n renameFunc,\n timeFormat,\n unitToStr,\n} from './dialect';\n\nfunction lagLeadSql (this: Generator, expression: LagExpr | LeadExpr): string {\n return this.func(\n expression instanceof LagExpr ? 'LAG' : 'LEAD',\n [\n expression.args.this,\n expression.args.offset ?? LiteralExpr.number(1),\n expression.args.default ?? null_(),\n ],\n );\n}\n\n/**\n * Accept both DATE_TRUNC(datetime, unit) and DATE_TRUNC(unit, datetime)\n */\nfunction buildDateTrunc (args: Expression[]): TimestampTruncExpr {\n const a0 = seqGet(args, 0);\n const a1 = seqGet(args, 1);\n\n const isUnitLike = (e: Expression | undefined): boolean => {\n if (!(e instanceof LiteralExpr && e.isString)) {\n return false;\n }\n const text = e.args.this;\n // Doris units typically don't contain digits (e.g., 'year', 'month')\n return !/\\d/.test(text ?? '');\n };\n\n // Determine which argument is the unit vs the timestamp\n const [\n unit,\n thisNode,\n ] = isUnitLike(a0)\n ? [\n a0,\n a1,\n ]\n : [\n a1,\n a0,\n ];\n\n return new TimestampTruncExpr({\n this: thisNode,\n unit: unit,\n });\n}\n\nexport class DorisTokenizer extends MySQL.Tokenizer {}\n\nclass DorisParser extends MySQL.Parser {\n @cache\n static get ID_VAR_TOKENS (): Set<TokenType> {\n return new Set([\n ...Parser.ID_VAR_TOKENS,\n TokenType.SESSION_USER,\n TokenType.CURRENT_CATALOG,\n ]);\n }\n\n // port from _Dialect metaclass logic\n @cache\n static get NO_PAREN_FUNCTIONS () {\n const noParenFunctions = {\n ...MySQL.Parser.NO_PAREN_FUNCTIONS,\n };\n delete noParenFunctions[TokenType.CURRENT_DATE];\n delete noParenFunctions[TokenType.LOCALTIME];\n delete noParenFunctions[TokenType.LOCALTIMESTAMP];\n return noParenFunctions;\n }\n\n @cache\n static get FUNCTIONS (): Record<string, (args: Expression[], options: {dialect: Dialect}) => Expression> {\n return {\n ...MySQL.Parser.FUNCTIONS,\n COLLECT_SET: (args: unknown[]) => ArrayUniqueAggExpr.fromArgList(args),\n DATE_TRUNC: buildDateTrunc,\n L2_DISTANCE: (args: unknown[]) => EuclideanDistanceExpr.fromArgList(args),\n MONTHS_ADD: (args: unknown[]) => AddMonthsExpr.fromArgList(args),\n REGEXP: (args: unknown[]) => RegexpLikeExpr.fromArgList(args),\n TO_DATE: (args: unknown[]) => TsOrDsToDateExpr.fromArgList(args),\n };\n }\n\n @cache\n static get FUNCTION_PARSERS (): Partial<Record<string, (this: Parser) => Expression | undefined>> {\n const parsers: Partial<Record<string, (this: Parser) => Expression | undefined>> = {\n ...MySQL.Parser.FUNCTION_PARSERS,\n };\n delete parsers['GROUP_CONCAT'];\n return parsers;\n }\n\n @cache\n static get PROPERTY_PARSERS (): Record<string, (this: Parser, ...args: unknown[]) => Expression | Expression[] | undefined> {\n return {\n ...MySQL.Parser.PROPERTY_PARSERS,\n PROPERTIES: function (this: Parser) {\n return this.parseWrappedProperties();\n },\n UNIQUE: function (this: Parser) {\n return this.parseCompositeKeyProperty(UniqueKeyPropertyExpr);\n },\n KEY: function (this: Parser) {\n return this.parseCompositeKeyProperty(UniqueKeyPropertyExpr);\n },\n BUILD: function (this: Parser) {\n return (this as DorisParser).parseBuildProperty();\n },\n REFRESH: function (this: Parser) {\n return (this as DorisParser).parseRefreshProperty();\n },\n };\n }\n\n parsePartitionProperty (): Expression | Expression[] | undefined {\n const expr = super.parsePartitionProperty();\n\n if (!expr) {\n return this.parsePartitionedBy();\n }\n\n if (expr instanceof PropertyExpr) {\n return expr;\n }\n\n this.matchLParen();\n\n let createExpressions: Expression[] | undefined = undefined;\n if (this.matchTextSeq('FROM', {\n advance: false,\n })) {\n createExpressions = this.parseCsv(() => this.parsePartitioningGranularityDynamic());\n }\n\n this.matchRParen();\n\n return this.expression(PartitionByRangePropertyExpr, {\n partitionExpressions: expr,\n createExpressions: createExpressions,\n });\n }\n\n parsePartitioningGranularityDynamic (): PartitionByRangePropertyDynamicExpr {\n this.matchTextSeq('FROM');\n const start = this.parseWrapped(() => this.parseString());\n this.matchTextSeq('TO');\n const end = this.parseWrapped(() => this.parseString());\n this.matchTextSeq('INTERVAL');\n const number = this.parseNumber();\n const unit = this.parseVar({\n anyToken: true,\n });\n\n const every = this.expression(IntervalExpr, {\n this: number,\n unit: unit,\n });\n\n return this.expression(PartitionByRangePropertyDynamicExpr, {\n start: start,\n end: end,\n every: every,\n });\n }\n\n parsePartitionRangeValue (): PartitionExpr {\n const expr = super.parsePartitionRangeValue();\n\n if (expr instanceof PartitionExpr) {\n return expr;\n }\n\n this.matchTextSeq('VALUES');\n const name = expr;\n\n // Doris-specific bracket syntax: VALUES [(...), (...))\n this.match(TokenType.L_BRACKET);\n const values = this.parseWrappedCsv(() => this.parseExpression());\n\n this.match(TokenType.R_BRACKET);\n this.match(TokenType.R_PAREN);\n\n const partRange = this.expression(PartitionRangeExpr, {\n this: name,\n expressions: values,\n });\n\n return this.expression(PartitionExpr, {\n expressions: [\n partRange,\n ],\n });\n }\n\n parseBuildProperty (): BuildPropertyExpr {\n return this.expression(BuildPropertyExpr, {\n this: this.parseVar({\n upper: true,\n }),\n });\n }\n\n parseRefreshProperty (): RefreshTriggerPropertyExpr {\n const method = this.parseVar({\n upper: true,\n });\n\n this.match(TokenType.ON);\n\n const kind = this.matchTexts([\n 'MANUAL',\n 'COMMIT',\n 'SCHEDULE',\n ])\n ? this.prev?.text.toUpperCase()\n : undefined;\n const every = this.matchTextSeq('EVERY') ? this.parseNumber() : undefined;\n const unit = every\n ? this.parseVar({\n anyToken: true,\n })\n : undefined;\n const starts = this.matchTextSeq('STARTS') ? this.parseString() : undefined;\n\n return this.expression(RefreshTriggerPropertyExpr, {\n method: method,\n kind: kind,\n every: every,\n unit: unit,\n starts: starts,\n });\n }\n}\n\nclass DorisGenerator extends MySQL.Generator {\n // port from _Dialect metaclass logic\n @cache\n static get AFTER_HAVING_MODIFIER_TRANSFORMS () {\n const modifiers = new Map(super.AFTER_HAVING_MODIFIER_TRANSFORMS);\n [\n 'cluster',\n 'distribute',\n 'sort',\n ].forEach((m) => modifiers.delete(m));\n return modifiers;\n }\n\n // port from _Dialect metaclass logic\n static SUPPORTS_DECODE_CASE = false;\n // port from _Dialect metaclass logic\n static TRY_SUPPORTED = false;\n // port from _Dialect metaclass logic\n static SUPPORTS_UESCAPE = false;\n static LAST_DAY_SUPPORTS_DATE_PART = false;\n static VARCHAR_REQUIRES_SIZE = false;\n static WITH_PROPERTIES_PREFIX = 'PROPERTIES';\n static RENAME_TABLE_WITH_DB = false;\n static UPDATE_STATEMENT_SUPPORTS_FROM = true;\n\n @cache\n static get TYPE_MAPPING () {\n return new Map([\n ...MySQL.Generator.TYPE_MAPPING,\n [\n DataTypeExprKind.TEXT,\n 'STRING',\n ],\n [\n DataTypeExprKind.TIMESTAMP,\n 'DATETIME',\n ],\n [\n DataTypeExprKind.TIMESTAMPTZ,\n 'DATETIME',\n ],\n ]);\n }\n\n @cache\n static get PROPERTIES_LOCATION () {\n return new Map<typeof Expression, PropertiesLocation>([\n ...MySQL.Generator.PROPERTIES_LOCATION,\n [\n UniqueKeyPropertyExpr,\n PropertiesLocation.POST_SCHEMA,\n ],\n [\n PartitionedByPropertyExpr,\n PropertiesLocation.POST_SCHEMA,\n ],\n [\n BuildPropertyExpr,\n PropertiesLocation.POST_SCHEMA,\n ],\n ]);\n }\n\n @cache\n static get CAST_MAPPING () {\n return {};\n }\n\n @cache\n static get TIMESTAMP_FUNC_TYPES () {\n return new Set<DataTypeExprKind>();\n }\n\n @cache\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n static get ORIGINAL_TRANSFORMS (): Map<typeof Expression, (this: Generator, e: any) => string> {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const transforms = new Map<typeof Expression, (this: Generator, e: any) => string>([\n ...MySQL.Generator.TRANSFORMS,\n [\n AddMonthsExpr,\n renameFunc('MONTHS_ADD'),\n ],\n [\n ApproxDistinctExpr,\n approxCountDistinctSql,\n ],\n [\n ArgMaxExpr,\n renameFunc('MAX_BY'),\n ],\n [\n ArgMinExpr,\n renameFunc('MIN_BY'),\n ],\n [\n ArrayAggExpr,\n renameFunc('COLLECT_LIST'),\n ],\n [\n ArrayToStringExpr,\n renameFunc('ARRAY_JOIN'),\n ],\n [\n ArrayUniqueAggExpr,\n renameFunc('COLLECT_SET'),\n ],\n [\n CurrentDateExpr,\n function (this: Generator) {\n return this.func('CURRENT_DATE', [\n ]);\n },\n ],\n [\n CurrentTimestampExpr,\n function (this: Generator) {\n return this.func('NOW', [\n ]);\n },\n ],\n [\n DateTruncExpr,\n function (this: Generator, e: DateTruncExpr) {\n return this.func('DATE_TRUNC', [\n e.args.this,\n unitToStr(e),\n ]);\n },\n ],\n [\n EuclideanDistanceExpr,\n renameFunc('L2_DISTANCE'),\n ],\n [\n GroupConcatExpr,\n function (this: Generator, e: GroupConcatExpr) {\n return this.func('GROUP_CONCAT', [\n e.args.this,\n e.args.separator ?? LiteralExpr.string(','),\n ]);\n },\n ],\n [\n JsonExtractScalarExpr,\n function (this: Generator, e: JsonExtractScalarExpr) {\n return this.func('JSON_EXTRACT', [\n e.args.this,\n e.args.expression,\n ]);\n },\n ],\n [\n LagExpr,\n lagLeadSql,\n ],\n [\n LeadExpr,\n lagLeadSql,\n ],\n [\n MapExpr,\n renameFunc('ARRAY_MAP'),\n ],\n [\n PropertyExpr,\n function (this: Generator, e: PropertyExpr) {\n return this.propertySql(e);\n },\n ],\n [\n RegexpLikeExpr,\n renameFunc('REGEXP'),\n ],\n [\n RegexpSplitExpr,\n renameFunc('SPLIT_BY_STRING'),\n ],\n [\n SchemaCommentPropertyExpr,\n function (this: Generator, e: SchemaCommentPropertyExpr) {\n return this.nakedProperty(e);\n },\n ],\n [\n SplitExpr,\n renameFunc('SPLIT_BY_STRING'),\n ],\n [\n StringToArrayExpr,\n renameFunc('SPLIT_BY_STRING'),\n ],\n [\n StrToUnixExpr,\n function (this: Generator, e: StrToUnixExpr) {\n return this.func('UNIX_TIMESTAMP', [\n e.args.this,\n this.formatTime(e),\n ]);\n },\n ],\n [\n TimeStrToDateExpr,\n renameFunc('TO_DATE'),\n ],\n [\n TsOrDsAddExpr,\n function (this: Generator, e: TsOrDsAddExpr) {\n return this.func('DATE_ADD', [\n e.args.this,\n e.args.expression,\n ]);\n },\n ],\n [\n TsOrDsToDateExpr,\n function (this: Generator, e: TsOrDsToDateExpr) {\n return this.func('TO_DATE', [\n e.args.this,\n ]);\n },\n ],\n [\n TimeToUnixExpr,\n renameFunc('UNIX_TIMESTAMP'),\n ],\n [\n TimestampTruncExpr,\n function (this: Generator, e: TimestampTruncExpr) {\n return this.func('DATE_TRUNC', [\n e.args.this,\n unitToStr(e),\n ]);\n },\n ],\n [\n UnixToStrExpr,\n function (this: Generator, e: UnixToStrExpr) {\n return this.func('FROM_UNIXTIME', [\n e.args.this,\n timeFormat('doris').call(this, e),\n ]);\n },\n ],\n [\n UnixToTimeExpr,\n renameFunc('FROM_UNIXTIME'),\n ],\n ]);\n\n return transforms;\n }\n\n @cache\n static get RESERVED_KEYWORDS () {\n return new Set([\n 'account_lock',\n 'account_unlock',\n 'add',\n 'adddate',\n 'admin',\n 'after',\n 'agg_state',\n 'aggregate',\n 'alias',\n 'all',\n 'alter',\n 'analyze',\n 'analyzed',\n 'and',\n 'anti',\n 'append',\n 'array',\n 'array_range',\n 'as',\n 'asc',\n 'at',\n 'authors',\n 'auto',\n 'auto_increment',\n 'backend',\n 'backends',\n 'backup',\n 'begin',\n 'belong',\n 'between',\n 'bigint',\n 'bin',\n 'binary',\n 'binlog',\n 'bitand',\n 'bitmap',\n 'bitmap_union',\n 'bitor',\n 'bitxor',\n 'blob',\n 'boolean',\n 'brief',\n 'broker',\n 'buckets',\n 'build',\n 'builtin',\n 'bulk',\n 'by',\n 'cached',\n 'call',\n 'cancel',\n 'case',\n 'cast',\n 'catalog',\n 'catalogs',\n 'chain',\n 'char',\n 'character',\n 'charset',\n 'check',\n 'clean',\n 'cluster',\n 'clusters',\n 'collate',\n 'collation',\n 'collect',\n 'column',\n 'columns',\n 'comment',\n 'commit',\n 'committed',\n 'compact',\n 'complete',\n 'config',\n 'connection',\n 'connection_id',\n 'consistent',\n 'constraint',\n 'constraints',\n 'convert',\n 'copy',\n 'count',\n 'create',\n 'creation',\n 'cron',\n 'cross',\n 'cube',\n 'current',\n 'current_catalog',\n 'current_date',\n 'current_time',\n 'current_timestamp',\n 'current_user',\n 'data',\n 'database',\n 'databases',\n 'date',\n 'date_add',\n 'date_ceil',\n 'date_diff',\n 'date_floor',\n 'date_sub',\n 'dateadd',\n 'datediff',\n 'datetime',\n 'datetimev2',\n 'datev2',\n 'datetimev1',\n 'datev1',\n 'day',\n 'days_add',\n 'days_sub',\n 'decimal',\n 'decimalv2',\n 'decimalv3',\n 'decommission',\n 'default',\n 'deferred',\n 'delete',\n 'demand',\n 'desc',\n 'describe',\n 'diagnose',\n 'disk',\n 'distinct',\n 'distinctpc',\n 'distinctpcsa',\n 'distributed',\n 'distribution',\n 'div',\n 'do',\n 'doris_internal_table_id',\n 'double',\n 'drop',\n 'dropp',\n 'dual',\n 'duplicate',\n 'dynamic',\n 'else',\n 'enable',\n 'encryptkey',\n 'encryptkeys',\n 'end',\n 'ends',\n 'engine',\n 'engines',\n 'enter',\n 'errors',\n 'events',\n 'every',\n 'except',\n 'exclude',\n 'execute',\n 'exists',\n 'expired',\n 'explain',\n 'export',\n 'extended',\n 'external',\n 'extract',\n 'failed_login_attempts',\n 'false',\n 'fast',\n 'feature',\n 'fields',\n 'file',\n 'filter',\n 'first',\n 'float',\n 'follower',\n 'following',\n 'for',\n 'foreign',\n 'force',\n 'format',\n 'free',\n 'from',\n 'frontend',\n 'frontends',\n 'full',\n 'function',\n 'functions',\n 'generic',\n 'global',\n 'grant',\n 'grants',\n 'graph',\n 'group',\n 'grouping',\n 'groups',\n 'hash',\n 'having',\n 'hdfs',\n 'help',\n 'histogram',\n 'hll',\n 'hll_union',\n 'hostname',\n 'hour',\n 'hub',\n 'identified',\n 'if',\n 'ignore',\n 'immediate',\n 'in',\n 'incremental',\n 'index',\n 'indexes',\n 'infile',\n 'inner',\n 'insert',\n 'install',\n 'int',\n 'integer',\n 'intermediate',\n 'intersect',\n 'interval',\n 'into',\n 'inverted',\n 'ipv4',\n 'ipv6',\n 'is',\n 'is_not_null_pred',\n 'is_null_pred',\n 'isnull',\n 'isolation',\n 'job',\n 'jobs',\n 'join',\n 'json',\n 'jsonb',\n 'key',\n 'keys',\n 'kill',\n 'label',\n 'largeint',\n 'last',\n 'lateral',\n 'ldap',\n 'ldap_admin_password',\n 'left',\n 'less',\n 'level',\n 'like',\n 'limit',\n 'lines',\n 'link',\n 'list',\n 'load',\n 'local',\n 'localtime',\n 'localtimestamp',\n 'location',\n 'lock',\n 'logical',\n 'low_priority',\n 'manual',\n 'map',\n 'match',\n 'match_all',\n 'match_any',\n 'match_phrase',\n 'match_phrase_edge',\n 'match_phrase_prefix',\n 'match_regexp',\n 'materialized',\n 'max',\n 'maxvalue',\n 'memo',\n 'merge',\n 'migrate',\n 'migrations',\n 'min',\n 'minus',\n 'minute',\n 'modify',\n 'month',\n 'mtmv',\n 'name',\n 'names',\n 'natural',\n 'negative',\n 'never',\n 'next',\n 'ngram_bf',\n 'no',\n 'non_nullable',\n 'not',\n 'null',\n 'nulls',\n 'observer',\n 'of',\n 'offset',\n 'on',\n 'only',\n 'open',\n 'optimized',\n 'or',\n 'order',\n 'outer',\n 'outfile',\n 'over',\n 'overwrite',\n 'parameter',\n 'parsed',\n 'partition',\n 'partitions',\n 'password',\n 'password_expire',\n 'password_history',\n 'password_lock_time',\n 'password_reuse',\n 'path',\n 'pause',\n 'percent',\n 'period',\n 'permissive',\n 'physical',\n 'plan',\n 'process',\n 'plugin',\n 'plugins',\n 'policy',\n 'preceding',\n 'prepare',\n 'primary',\n 'proc',\n 'procedure',\n 'processlist',\n 'profile',\n 'properties',\n 'property',\n 'quantile_state',\n 'quantile_union',\n 'query',\n 'quota',\n 'random',\n 'range',\n 'read',\n 'real',\n 'rebalance',\n 'recover',\n 'recycle',\n 'refresh',\n 'references',\n 'regexp',\n 'release',\n 'rename',\n 'repair',\n 'repeatable',\n 'replace',\n 'replace_if_not_null',\n 'replica',\n 'repositories',\n 'repository',\n 'resource',\n 'resources',\n 'restore',\n 'restrictive',\n 'resume',\n 'returns',\n 'revoke',\n 'rewritten',\n 'right',\n 'rlike',\n 'role',\n 'roles',\n 'rollback',\n 'rollup',\n 'routine',\n 'row',\n 'rows',\n 's3',\n 'sample',\n 'schedule',\n 'scheduler',\n 'schema',\n 'schemas',\n 'second',\n 'select',\n 'semi',\n 'sequence',\n 'serializable',\n 'session',\n 'set',\n 'sets',\n 'shape',\n 'show',\n 'signed',\n 'skew',\n 'smallint',\n 'snapshot',\n 'soname',\n 'split',\n 'sql_block_rule',\n 'start',\n 'starts',\n 'stats',\n 'status',\n 'stop',\n 'storage',\n 'stream',\n 'streaming',\n 'string',\n 'struct',\n 'subdate',\n 'sum',\n 'superuser',\n 'switch',\n 'sync',\n 'system',\n 'table',\n 'tables',\n 'tablesample',\n 'tablet',\n 'tablets',\n 'task',\n 'tasks',\n 'temporary',\n 'terminated',\n 'text',\n 'than',\n 'then',\n 'time',\n 'timestamp',\n 'timestampadd',\n 'timestampdiff',\n 'tinyint',\n 'to',\n 'transaction',\n 'trash',\n 'tree',\n 'triggers',\n 'trim',\n 'true',\n 'truncate',\n 'type',\n 'type_cast',\n 'types',\n 'unbounded',\n 'uncommitted',\n 'uninstall',\n 'union',\n 'unique',\n 'unlock',\n 'unsigned',\n 'update',\n 'use',\n 'user',\n 'using',\n 'value',\n 'values',\n 'varchar',\n 'variables',\n 'variant',\n 'vault',\n 'verbose',\n 'version',\n 'view',\n 'warnings',\n 'week',\n 'when',\n 'where',\n 'whitelist',\n 'with',\n 'work',\n 'workload',\n 'write',\n 'xor',\n 'year',\n ]);\n }\n\n uniqueKeyPropertySql (expression: UniqueKeyPropertyExpr, options: {prefix?: string} = {}): string {\n let {\n prefix = 'UNIQUE KEY',\n } = options;\n const createStmt = expression.findAncestor(CreateExpr);\n\n if (\n createStmt\n && createStmt.args.properties?.find(MaterializedPropertyExpr)\n ) {\n prefix = 'KEY';\n }\n\n return super.uniqueKeyPropertySql(expression, {\n prefix,\n });\n }\n\n partitionRangeSql (expression: PartitionRangeExpr): string {\n const name = this.sql(expression, 'this');\n const values = expression.args.expressions || [\n ];\n\n if (values.length !== 1) {\n // Multiple values: use VALUES [ ... )\n let valuesSql: string;\n\n // Check if we have a nested array structure (list of lists)\n if (0 < values.length && Array.isArray(values[0])) {\n valuesSql = (values as Expression[][]).map((inner) =>\n `(${inner.map((v) => this.sql(v)).join(', ')})`).join(', ');\n } else {\n valuesSql = values.map((v) => `(${this.sql(v as Expression)})`).join(', ');\n }\n\n return `PARTITION ${name} VALUES [${valuesSql})`;\n }\n\n return `PARTITION ${name} VALUES LESS THAN (${this.sql((values as Expression[])[0])})`;\n }\n\n partitionByRangePropertyDynamicSql (expression: PartitionByRangePropertyDynamicExpr): string {\n // Generates: FROM (\"start\") TO (\"end\") INTERVAL N UNIT\n const start = this.sql(expression, 'start');\n const end = this.sql(expression, 'end');\n const every = expression.args.every;\n\n let interval = '';\n if (every) {\n const number = this.sql(every, 'this');\n const unit = this.sql(every, 'unit');\n interval = `INTERVAL ${number} ${unit}`;\n }\n\n return `FROM (${start}) TO (${end}) ${interval}`.trim();\n }\n\n partitionedByPropertySql (expression: PartitionedByPropertyExpr): string {\n const thisNode = expression.args.this;\n if (thisNode instanceof SchemaExpr) {\n return `PARTITION BY (${this.expressions(thisNode, {\n flat: true,\n })})`;\n }\n return `PARTITION BY (${this.sql(thisNode)})`;\n }\n\n tableSql (expression: TableExpr, options: {sep?: string} = {}): string {\n /** Override table_sql to avoid AS keyword in UPDATE and DELETE statements. */\n let {\n sep = ' AS ',\n } = options;\n const ancestor = expression.findAncestor<UpdateExpr | DeleteExpr | SelectExpr>(UpdateExpr, DeleteExpr, SelectExpr);\n\n if (ancestor && !(ancestor instanceof SelectExpr)) {\n sep = ' ';\n }\n\n return super.tableSql(expression, {\n sep,\n });\n }\n}\n\nexport class Doris extends MySQL {\n static DIALECT_NAME = Dialects.DORIS;\n static DATE_FORMAT = '\\'yyyy-MM-dd\\'';\n static DATEINT_FORMAT = '\\'yyyyMMdd\\'';\n static TIME_FORMAT = '\\'yyyy-MM-dd HH:mm:ss\\'';\n\n static Tokenizer = DorisTokenizer;\n static Parser = DorisParser;\n static Generator = DorisGenerator;\n}\n\nDialect.register(Dialects.DORIS, Doris);\n"]}
|
|
@@ -0,0 +1,484 @@
|
|
|
1
|
+
import { d as Dialects, l as TokenType, E as Expression, c as Dialect, i as Parser, bj as PartitionByRangePropertyDynamicExpr, aX as PartitionExpr, bk as BuildPropertyExpr, bl as RefreshTriggerPropertyExpr, G as Generator, aj as PropertiesLocation, $ as DataTypeExprKind, bm as UniqueKeyPropertyExpr, bn as PartitionRangeExpr, a_ as PartitionedByPropertyExpr, ad as TableExpr } from '../tokens-VcMD09XM.cjs';
|
|
2
|
+
import { MySQL } from './mysql.cjs';
|
|
3
|
+
|
|
4
|
+
declare class DorisTokenizer extends MySQL.Tokenizer {
|
|
5
|
+
}
|
|
6
|
+
declare class DorisParser extends MySQL.Parser {
|
|
7
|
+
static get ID_VAR_TOKENS(): Set<TokenType>;
|
|
8
|
+
static get NO_PAREN_FUNCTIONS(): {
|
|
9
|
+
lParen?: typeof Expression | undefined;
|
|
10
|
+
rParen?: typeof Expression | undefined;
|
|
11
|
+
lBracket?: typeof Expression | undefined;
|
|
12
|
+
rBracket?: typeof Expression | undefined;
|
|
13
|
+
lBrace?: typeof Expression | undefined;
|
|
14
|
+
rBrace?: typeof Expression | undefined;
|
|
15
|
+
comma?: typeof Expression | undefined;
|
|
16
|
+
dot?: typeof Expression | undefined;
|
|
17
|
+
dash?: typeof Expression | undefined;
|
|
18
|
+
plus?: typeof Expression | undefined;
|
|
19
|
+
colon?: typeof Expression | undefined;
|
|
20
|
+
dotcolon?: typeof Expression | undefined;
|
|
21
|
+
dcolon?: typeof Expression | undefined;
|
|
22
|
+
dcolondollar?: typeof Expression | undefined;
|
|
23
|
+
dcolonpercent?: typeof Expression | undefined;
|
|
24
|
+
dcolonqmark?: typeof Expression | undefined;
|
|
25
|
+
dqmark?: typeof Expression | undefined;
|
|
26
|
+
semicolon?: typeof Expression | undefined;
|
|
27
|
+
star?: typeof Expression | undefined;
|
|
28
|
+
backslash?: typeof Expression | undefined;
|
|
29
|
+
slash?: typeof Expression | undefined;
|
|
30
|
+
lt?: typeof Expression | undefined;
|
|
31
|
+
lte?: typeof Expression | undefined;
|
|
32
|
+
gt?: typeof Expression | undefined;
|
|
33
|
+
gte?: typeof Expression | undefined;
|
|
34
|
+
not?: typeof Expression | undefined;
|
|
35
|
+
eq?: typeof Expression | undefined;
|
|
36
|
+
neq?: typeof Expression | undefined;
|
|
37
|
+
nullsafeEq?: typeof Expression | undefined;
|
|
38
|
+
colonEq?: typeof Expression | undefined;
|
|
39
|
+
colonGt?: typeof Expression | undefined;
|
|
40
|
+
ncolonGt?: typeof Expression | undefined;
|
|
41
|
+
and?: typeof Expression | undefined;
|
|
42
|
+
or?: typeof Expression | undefined;
|
|
43
|
+
amp?: typeof Expression | undefined;
|
|
44
|
+
dpipe?: typeof Expression | undefined;
|
|
45
|
+
pipeGt?: typeof Expression | undefined;
|
|
46
|
+
pipe?: typeof Expression | undefined;
|
|
47
|
+
pipeSlash?: typeof Expression | undefined;
|
|
48
|
+
dpipeSlash?: typeof Expression | undefined;
|
|
49
|
+
caret?: typeof Expression | undefined;
|
|
50
|
+
caretAt?: typeof Expression | undefined;
|
|
51
|
+
tilde?: typeof Expression | undefined;
|
|
52
|
+
arrow?: typeof Expression | undefined;
|
|
53
|
+
darrow?: typeof Expression | undefined;
|
|
54
|
+
farrow?: typeof Expression | undefined;
|
|
55
|
+
hash?: typeof Expression | undefined;
|
|
56
|
+
hashArrow?: typeof Expression | undefined;
|
|
57
|
+
dhashArrow?: typeof Expression | undefined;
|
|
58
|
+
lrArrow?: typeof Expression | undefined;
|
|
59
|
+
dat?: typeof Expression | undefined;
|
|
60
|
+
ltAt?: typeof Expression | undefined;
|
|
61
|
+
atGt?: typeof Expression | undefined;
|
|
62
|
+
dollar?: typeof Expression | undefined;
|
|
63
|
+
parameter?: typeof Expression | undefined;
|
|
64
|
+
session?: typeof Expression | undefined;
|
|
65
|
+
sessionParameter?: typeof Expression | undefined;
|
|
66
|
+
sessionUser?: typeof Expression | undefined;
|
|
67
|
+
damp?: typeof Expression | undefined;
|
|
68
|
+
ampLt?: typeof Expression | undefined;
|
|
69
|
+
ampGt?: typeof Expression | undefined;
|
|
70
|
+
adjacent?: typeof Expression | undefined;
|
|
71
|
+
xor?: typeof Expression | undefined;
|
|
72
|
+
dstar?: typeof Expression | undefined;
|
|
73
|
+
qmarkAmp?: typeof Expression | undefined;
|
|
74
|
+
qmarkPipe?: typeof Expression | undefined;
|
|
75
|
+
hashDash?: typeof Expression | undefined;
|
|
76
|
+
exclamation?: typeof Expression | undefined;
|
|
77
|
+
uriStart?: typeof Expression | undefined;
|
|
78
|
+
blockStart?: typeof Expression | undefined;
|
|
79
|
+
blockEnd?: typeof Expression | undefined;
|
|
80
|
+
space?: typeof Expression | undefined;
|
|
81
|
+
break?: typeof Expression | undefined;
|
|
82
|
+
string?: typeof Expression | undefined;
|
|
83
|
+
number?: typeof Expression | undefined;
|
|
84
|
+
identifier?: typeof Expression | undefined;
|
|
85
|
+
database?: typeof Expression | undefined;
|
|
86
|
+
column?: typeof Expression | undefined;
|
|
87
|
+
columnDef?: typeof Expression | undefined;
|
|
88
|
+
schema?: typeof Expression | undefined;
|
|
89
|
+
table?: typeof Expression | undefined;
|
|
90
|
+
warehouse?: typeof Expression | undefined;
|
|
91
|
+
stage?: typeof Expression | undefined;
|
|
92
|
+
streamlit?: typeof Expression | undefined;
|
|
93
|
+
var?: typeof Expression | undefined;
|
|
94
|
+
bitString?: typeof Expression | undefined;
|
|
95
|
+
hexString?: typeof Expression | undefined;
|
|
96
|
+
byteString?: typeof Expression | undefined;
|
|
97
|
+
nationalString?: typeof Expression | undefined;
|
|
98
|
+
rawString?: typeof Expression | undefined;
|
|
99
|
+
heredocString?: typeof Expression | undefined;
|
|
100
|
+
unicodeString?: typeof Expression | undefined;
|
|
101
|
+
bit?: typeof Expression | undefined;
|
|
102
|
+
boolean?: typeof Expression | undefined;
|
|
103
|
+
tinyint?: typeof Expression | undefined;
|
|
104
|
+
utinyint?: typeof Expression | undefined;
|
|
105
|
+
smallint?: typeof Expression | undefined;
|
|
106
|
+
usmallint?: typeof Expression | undefined;
|
|
107
|
+
mediumint?: typeof Expression | undefined;
|
|
108
|
+
umediumint?: typeof Expression | undefined;
|
|
109
|
+
int?: typeof Expression | undefined;
|
|
110
|
+
uint?: typeof Expression | undefined;
|
|
111
|
+
bigint?: typeof Expression | undefined;
|
|
112
|
+
ubigint?: typeof Expression | undefined;
|
|
113
|
+
bignum?: typeof Expression | undefined;
|
|
114
|
+
int128?: typeof Expression | undefined;
|
|
115
|
+
uint128?: typeof Expression | undefined;
|
|
116
|
+
int256?: typeof Expression | undefined;
|
|
117
|
+
uint256?: typeof Expression | undefined;
|
|
118
|
+
float?: typeof Expression | undefined;
|
|
119
|
+
double?: typeof Expression | undefined;
|
|
120
|
+
udouble?: typeof Expression | undefined;
|
|
121
|
+
decimal?: typeof Expression | undefined;
|
|
122
|
+
decimal32?: typeof Expression | undefined;
|
|
123
|
+
decimal64?: typeof Expression | undefined;
|
|
124
|
+
decimal128?: typeof Expression | undefined;
|
|
125
|
+
decimal256?: typeof Expression | undefined;
|
|
126
|
+
decfloat?: typeof Expression | undefined;
|
|
127
|
+
udecimal?: typeof Expression | undefined;
|
|
128
|
+
bigdecimal?: typeof Expression | undefined;
|
|
129
|
+
char?: typeof Expression | undefined;
|
|
130
|
+
nchar?: typeof Expression | undefined;
|
|
131
|
+
varchar?: typeof Expression | undefined;
|
|
132
|
+
nvarchar?: typeof Expression | undefined;
|
|
133
|
+
bpchar?: typeof Expression | undefined;
|
|
134
|
+
text?: typeof Expression | undefined;
|
|
135
|
+
mediumtext?: typeof Expression | undefined;
|
|
136
|
+
longtext?: typeof Expression | undefined;
|
|
137
|
+
blob?: typeof Expression | undefined;
|
|
138
|
+
mediumblob?: typeof Expression | undefined;
|
|
139
|
+
longblob?: typeof Expression | undefined;
|
|
140
|
+
tinyblob?: typeof Expression | undefined;
|
|
141
|
+
tinytext?: typeof Expression | undefined;
|
|
142
|
+
name?: typeof Expression | undefined;
|
|
143
|
+
binary?: typeof Expression | undefined;
|
|
144
|
+
varbinary?: typeof Expression | undefined;
|
|
145
|
+
json?: typeof Expression | undefined;
|
|
146
|
+
jsonb?: typeof Expression | undefined;
|
|
147
|
+
time?: typeof Expression | undefined;
|
|
148
|
+
timetz?: typeof Expression | undefined;
|
|
149
|
+
timeNs?: typeof Expression | undefined;
|
|
150
|
+
timestamp?: typeof Expression | undefined;
|
|
151
|
+
timestamptz?: typeof Expression | undefined;
|
|
152
|
+
timestampltz?: typeof Expression | undefined;
|
|
153
|
+
timestampntz?: typeof Expression | undefined;
|
|
154
|
+
timestampS?: typeof Expression | undefined;
|
|
155
|
+
timestampMs?: typeof Expression | undefined;
|
|
156
|
+
timestampNs?: typeof Expression | undefined;
|
|
157
|
+
datetime?: typeof Expression | undefined;
|
|
158
|
+
datetime2?: typeof Expression | undefined;
|
|
159
|
+
datetime64?: typeof Expression | undefined;
|
|
160
|
+
smalldatetime?: typeof Expression | undefined;
|
|
161
|
+
date?: typeof Expression | undefined;
|
|
162
|
+
date32?: typeof Expression | undefined;
|
|
163
|
+
int4range?: typeof Expression | undefined;
|
|
164
|
+
int4multirange?: typeof Expression | undefined;
|
|
165
|
+
int8range?: typeof Expression | undefined;
|
|
166
|
+
int8multirange?: typeof Expression | undefined;
|
|
167
|
+
numrange?: typeof Expression | undefined;
|
|
168
|
+
nummultirange?: typeof Expression | undefined;
|
|
169
|
+
tsrange?: typeof Expression | undefined;
|
|
170
|
+
tsmultirange?: typeof Expression | undefined;
|
|
171
|
+
tstzrange?: typeof Expression | undefined;
|
|
172
|
+
tstzmultirange?: typeof Expression | undefined;
|
|
173
|
+
daterange?: typeof Expression | undefined;
|
|
174
|
+
datemultirange?: typeof Expression | undefined;
|
|
175
|
+
uuid?: typeof Expression | undefined;
|
|
176
|
+
geography?: typeof Expression | undefined;
|
|
177
|
+
geographypoint?: typeof Expression | undefined;
|
|
178
|
+
nullable?: typeof Expression | undefined;
|
|
179
|
+
geometry?: typeof Expression | undefined;
|
|
180
|
+
point?: typeof Expression | undefined;
|
|
181
|
+
ring?: typeof Expression | undefined;
|
|
182
|
+
linestring?: typeof Expression | undefined;
|
|
183
|
+
localtime?: typeof Expression | undefined;
|
|
184
|
+
localtimestamp?: typeof Expression | undefined;
|
|
185
|
+
systimestamp?: typeof Expression | undefined;
|
|
186
|
+
multilinestring?: typeof Expression | undefined;
|
|
187
|
+
polygon?: typeof Expression | undefined;
|
|
188
|
+
multipolygon?: typeof Expression | undefined;
|
|
189
|
+
hllsketch?: typeof Expression | undefined;
|
|
190
|
+
hstore?: typeof Expression | undefined;
|
|
191
|
+
super?: typeof Expression | undefined;
|
|
192
|
+
serial?: typeof Expression | undefined;
|
|
193
|
+
smallserial?: typeof Expression | undefined;
|
|
194
|
+
bigserial?: typeof Expression | undefined;
|
|
195
|
+
xml?: typeof Expression | undefined;
|
|
196
|
+
year?: typeof Expression | undefined;
|
|
197
|
+
userdefined?: typeof Expression | undefined;
|
|
198
|
+
money?: typeof Expression | undefined;
|
|
199
|
+
smallmoney?: typeof Expression | undefined;
|
|
200
|
+
rowversion?: typeof Expression | undefined;
|
|
201
|
+
image?: typeof Expression | undefined;
|
|
202
|
+
variant?: typeof Expression | undefined;
|
|
203
|
+
object?: typeof Expression | undefined;
|
|
204
|
+
inet?: typeof Expression | undefined;
|
|
205
|
+
ipaddress?: typeof Expression | undefined;
|
|
206
|
+
ipprefix?: typeof Expression | undefined;
|
|
207
|
+
ipv4?: typeof Expression | undefined;
|
|
208
|
+
ipv6?: typeof Expression | undefined;
|
|
209
|
+
enum?: typeof Expression | undefined;
|
|
210
|
+
enum8?: typeof Expression | undefined;
|
|
211
|
+
enum16?: typeof Expression | undefined;
|
|
212
|
+
fixedstring?: typeof Expression | undefined;
|
|
213
|
+
lowcardinality?: typeof Expression | undefined;
|
|
214
|
+
nested?: typeof Expression | undefined;
|
|
215
|
+
aggregatefunction?: typeof Expression | undefined;
|
|
216
|
+
simpleaggregatefunction?: typeof Expression | undefined;
|
|
217
|
+
tdigest?: typeof Expression | undefined;
|
|
218
|
+
unknown?: typeof Expression | undefined;
|
|
219
|
+
vector?: typeof Expression | undefined;
|
|
220
|
+
dynamic?: typeof Expression | undefined;
|
|
221
|
+
void?: typeof Expression | undefined;
|
|
222
|
+
alias?: typeof Expression | undefined;
|
|
223
|
+
alter?: typeof Expression | undefined;
|
|
224
|
+
all?: typeof Expression | undefined;
|
|
225
|
+
anti?: typeof Expression | undefined;
|
|
226
|
+
any?: typeof Expression | undefined;
|
|
227
|
+
apply?: typeof Expression | undefined;
|
|
228
|
+
array?: typeof Expression | undefined;
|
|
229
|
+
asc?: typeof Expression | undefined;
|
|
230
|
+
asof?: typeof Expression | undefined;
|
|
231
|
+
attach?: typeof Expression | undefined;
|
|
232
|
+
autoIncrement?: typeof Expression | undefined;
|
|
233
|
+
begin?: typeof Expression | undefined;
|
|
234
|
+
between?: typeof Expression | undefined;
|
|
235
|
+
bulkCollectInto?: typeof Expression | undefined;
|
|
236
|
+
cache?: typeof Expression | undefined;
|
|
237
|
+
case?: typeof Expression | undefined;
|
|
238
|
+
characterSet?: typeof Expression | undefined;
|
|
239
|
+
clusterBy?: typeof Expression | undefined;
|
|
240
|
+
collate?: typeof Expression | undefined;
|
|
241
|
+
command?: typeof Expression | undefined;
|
|
242
|
+
comment?: typeof Expression | undefined;
|
|
243
|
+
commit?: typeof Expression | undefined;
|
|
244
|
+
connectBy?: typeof Expression | undefined;
|
|
245
|
+
constraint?: typeof Expression | undefined;
|
|
246
|
+
copy?: typeof Expression | undefined;
|
|
247
|
+
create?: typeof Expression | undefined;
|
|
248
|
+
cross?: typeof Expression | undefined;
|
|
249
|
+
cube?: typeof Expression | undefined;
|
|
250
|
+
currentDate?: typeof Expression | undefined;
|
|
251
|
+
currentDatetime?: typeof Expression | undefined;
|
|
252
|
+
currentSchema?: typeof Expression | undefined;
|
|
253
|
+
currentTime?: typeof Expression | undefined;
|
|
254
|
+
currentTimestamp?: typeof Expression | undefined;
|
|
255
|
+
currentUser?: typeof Expression | undefined;
|
|
256
|
+
currentRole?: typeof Expression | undefined;
|
|
257
|
+
currentCatalog?: typeof Expression | undefined;
|
|
258
|
+
declare?: typeof Expression | undefined;
|
|
259
|
+
default?: typeof Expression | undefined;
|
|
260
|
+
delete?: typeof Expression | undefined;
|
|
261
|
+
desc?: typeof Expression | undefined;
|
|
262
|
+
describe?: typeof Expression | undefined;
|
|
263
|
+
detach?: typeof Expression | undefined;
|
|
264
|
+
dictionary?: typeof Expression | undefined;
|
|
265
|
+
distinct?: typeof Expression | undefined;
|
|
266
|
+
distributeBy?: typeof Expression | undefined;
|
|
267
|
+
div?: typeof Expression | undefined;
|
|
268
|
+
drop?: typeof Expression | undefined;
|
|
269
|
+
else?: typeof Expression | undefined;
|
|
270
|
+
end?: typeof Expression | undefined;
|
|
271
|
+
escape?: typeof Expression | undefined;
|
|
272
|
+
except?: typeof Expression | undefined;
|
|
273
|
+
execute?: typeof Expression | undefined;
|
|
274
|
+
exists?: typeof Expression | undefined;
|
|
275
|
+
false?: typeof Expression | undefined;
|
|
276
|
+
fetch?: typeof Expression | undefined;
|
|
277
|
+
file?: typeof Expression | undefined;
|
|
278
|
+
fileFormat?: typeof Expression | undefined;
|
|
279
|
+
filter?: typeof Expression | undefined;
|
|
280
|
+
final?: typeof Expression | undefined;
|
|
281
|
+
first?: typeof Expression | undefined;
|
|
282
|
+
for?: typeof Expression | undefined;
|
|
283
|
+
force?: typeof Expression | undefined;
|
|
284
|
+
foreignKey?: typeof Expression | undefined;
|
|
285
|
+
format?: typeof Expression | undefined;
|
|
286
|
+
from?: typeof Expression | undefined;
|
|
287
|
+
full?: typeof Expression | undefined;
|
|
288
|
+
function?: typeof Expression | undefined;
|
|
289
|
+
get?: typeof Expression | undefined;
|
|
290
|
+
glob?: typeof Expression | undefined;
|
|
291
|
+
global?: typeof Expression | undefined;
|
|
292
|
+
grant?: typeof Expression | undefined;
|
|
293
|
+
groupBy?: typeof Expression | undefined;
|
|
294
|
+
groupingSets?: typeof Expression | undefined;
|
|
295
|
+
having?: typeof Expression | undefined;
|
|
296
|
+
hint?: typeof Expression | undefined;
|
|
297
|
+
ignore?: typeof Expression | undefined;
|
|
298
|
+
ilike?: typeof Expression | undefined;
|
|
299
|
+
in?: typeof Expression | undefined;
|
|
300
|
+
index?: typeof Expression | undefined;
|
|
301
|
+
indexedBy?: typeof Expression | undefined;
|
|
302
|
+
inner?: typeof Expression | undefined;
|
|
303
|
+
insert?: typeof Expression | undefined;
|
|
304
|
+
install?: typeof Expression | undefined;
|
|
305
|
+
intersect?: typeof Expression | undefined;
|
|
306
|
+
interval?: typeof Expression | undefined;
|
|
307
|
+
into?: typeof Expression | undefined;
|
|
308
|
+
introducer?: typeof Expression | undefined;
|
|
309
|
+
irlike?: typeof Expression | undefined;
|
|
310
|
+
is?: typeof Expression | undefined;
|
|
311
|
+
isnull?: typeof Expression | undefined;
|
|
312
|
+
join?: typeof Expression | undefined;
|
|
313
|
+
joinMarker?: typeof Expression | undefined;
|
|
314
|
+
keep?: typeof Expression | undefined;
|
|
315
|
+
key?: typeof Expression | undefined;
|
|
316
|
+
kill?: typeof Expression | undefined;
|
|
317
|
+
language?: typeof Expression | undefined;
|
|
318
|
+
lateral?: typeof Expression | undefined;
|
|
319
|
+
left?: typeof Expression | undefined;
|
|
320
|
+
like?: typeof Expression | undefined;
|
|
321
|
+
limit?: typeof Expression | undefined;
|
|
322
|
+
list?: typeof Expression | undefined;
|
|
323
|
+
load?: typeof Expression | undefined;
|
|
324
|
+
lock?: typeof Expression | undefined;
|
|
325
|
+
map?: typeof Expression | undefined;
|
|
326
|
+
match?: typeof Expression | undefined;
|
|
327
|
+
matchCondition?: typeof Expression | undefined;
|
|
328
|
+
matchRecognize?: typeof Expression | undefined;
|
|
329
|
+
memberOf?: typeof Expression | undefined;
|
|
330
|
+
merge?: typeof Expression | undefined;
|
|
331
|
+
mod?: typeof Expression | undefined;
|
|
332
|
+
model?: typeof Expression | undefined;
|
|
333
|
+
natural?: typeof Expression | undefined;
|
|
334
|
+
next?: typeof Expression | undefined;
|
|
335
|
+
nothing?: typeof Expression | undefined;
|
|
336
|
+
notnull?: typeof Expression | undefined;
|
|
337
|
+
null?: typeof Expression | undefined;
|
|
338
|
+
objectIdentifier?: typeof Expression | undefined;
|
|
339
|
+
offset?: typeof Expression | undefined;
|
|
340
|
+
on?: typeof Expression | undefined;
|
|
341
|
+
only?: typeof Expression | undefined;
|
|
342
|
+
operator?: typeof Expression | undefined;
|
|
343
|
+
orderBy?: typeof Expression | undefined;
|
|
344
|
+
orderSiblingsBy?: typeof Expression | undefined;
|
|
345
|
+
ordered?: typeof Expression | undefined;
|
|
346
|
+
ordinality?: typeof Expression | undefined;
|
|
347
|
+
out?: typeof Expression | undefined;
|
|
348
|
+
inout?: typeof Expression | undefined;
|
|
349
|
+
outer?: typeof Expression | undefined;
|
|
350
|
+
over?: typeof Expression | undefined;
|
|
351
|
+
overlaps?: typeof Expression | undefined;
|
|
352
|
+
overwrite?: typeof Expression | undefined;
|
|
353
|
+
partition?: typeof Expression | undefined;
|
|
354
|
+
partitionBy?: typeof Expression | undefined;
|
|
355
|
+
percent?: typeof Expression | undefined;
|
|
356
|
+
pivot?: typeof Expression | undefined;
|
|
357
|
+
placeholder?: typeof Expression | undefined;
|
|
358
|
+
positional?: typeof Expression | undefined;
|
|
359
|
+
pragma?: typeof Expression | undefined;
|
|
360
|
+
prewhere?: typeof Expression | undefined;
|
|
361
|
+
primaryKey?: typeof Expression | undefined;
|
|
362
|
+
procedure?: typeof Expression | undefined;
|
|
363
|
+
properties?: typeof Expression | undefined;
|
|
364
|
+
pseudoType?: typeof Expression | undefined;
|
|
365
|
+
put?: typeof Expression | undefined;
|
|
366
|
+
qualify?: typeof Expression | undefined;
|
|
367
|
+
quote?: typeof Expression | undefined;
|
|
368
|
+
qdcolon?: typeof Expression | undefined;
|
|
369
|
+
range?: typeof Expression | undefined;
|
|
370
|
+
recursive?: typeof Expression | undefined;
|
|
371
|
+
refresh?: typeof Expression | undefined;
|
|
372
|
+
rename?: typeof Expression | undefined;
|
|
373
|
+
replace?: typeof Expression | undefined;
|
|
374
|
+
returning?: typeof Expression | undefined;
|
|
375
|
+
revoke?: typeof Expression | undefined;
|
|
376
|
+
references?: typeof Expression | undefined;
|
|
377
|
+
right?: typeof Expression | undefined;
|
|
378
|
+
rlike?: typeof Expression | undefined;
|
|
379
|
+
rollback?: typeof Expression | undefined;
|
|
380
|
+
rollup?: typeof Expression | undefined;
|
|
381
|
+
row?: typeof Expression | undefined;
|
|
382
|
+
rows?: typeof Expression | undefined;
|
|
383
|
+
select?: typeof Expression | undefined;
|
|
384
|
+
semi?: typeof Expression | undefined;
|
|
385
|
+
separator?: typeof Expression | undefined;
|
|
386
|
+
sequence?: typeof Expression | undefined;
|
|
387
|
+
serdeProperties?: typeof Expression | undefined;
|
|
388
|
+
set?: typeof Expression | undefined;
|
|
389
|
+
settings?: typeof Expression | undefined;
|
|
390
|
+
show?: typeof Expression | undefined;
|
|
391
|
+
similarTo?: typeof Expression | undefined;
|
|
392
|
+
some?: typeof Expression | undefined;
|
|
393
|
+
sortBy?: typeof Expression | undefined;
|
|
394
|
+
soundsLike?: typeof Expression | undefined;
|
|
395
|
+
startWith?: typeof Expression | undefined;
|
|
396
|
+
storageIntegration?: typeof Expression | undefined;
|
|
397
|
+
straightJoin?: typeof Expression | undefined;
|
|
398
|
+
struct?: typeof Expression | undefined;
|
|
399
|
+
summarize?: typeof Expression | undefined;
|
|
400
|
+
tableSample?: typeof Expression | undefined;
|
|
401
|
+
tag?: typeof Expression | undefined;
|
|
402
|
+
temporary?: typeof Expression | undefined;
|
|
403
|
+
top?: typeof Expression | undefined;
|
|
404
|
+
then?: typeof Expression | undefined;
|
|
405
|
+
true?: typeof Expression | undefined;
|
|
406
|
+
truncate?: typeof Expression | undefined;
|
|
407
|
+
uncache?: typeof Expression | undefined;
|
|
408
|
+
union?: typeof Expression | undefined;
|
|
409
|
+
unnest?: typeof Expression | undefined;
|
|
410
|
+
unpivot?: typeof Expression | undefined;
|
|
411
|
+
update?: typeof Expression | undefined;
|
|
412
|
+
use?: typeof Expression | undefined;
|
|
413
|
+
using?: typeof Expression | undefined;
|
|
414
|
+
values?: typeof Expression | undefined;
|
|
415
|
+
variadic?: typeof Expression | undefined;
|
|
416
|
+
view?: typeof Expression | undefined;
|
|
417
|
+
semanticView?: typeof Expression | undefined;
|
|
418
|
+
volatile?: typeof Expression | undefined;
|
|
419
|
+
when?: typeof Expression | undefined;
|
|
420
|
+
where?: typeof Expression | undefined;
|
|
421
|
+
window?: typeof Expression | undefined;
|
|
422
|
+
with?: typeof Expression | undefined;
|
|
423
|
+
unique?: typeof Expression | undefined;
|
|
424
|
+
utcDate?: typeof Expression | undefined;
|
|
425
|
+
utcTime?: typeof Expression | undefined;
|
|
426
|
+
utcTimestamp?: typeof Expression | undefined;
|
|
427
|
+
versionSnapshot?: typeof Expression | undefined;
|
|
428
|
+
timestampSnapshot?: typeof Expression | undefined;
|
|
429
|
+
option?: typeof Expression | undefined;
|
|
430
|
+
sink?: typeof Expression | undefined;
|
|
431
|
+
source?: typeof Expression | undefined;
|
|
432
|
+
analyze?: typeof Expression | undefined;
|
|
433
|
+
namespace?: typeof Expression | undefined;
|
|
434
|
+
export?: typeof Expression | undefined;
|
|
435
|
+
hiveTokenStream?: typeof Expression | undefined;
|
|
436
|
+
};
|
|
437
|
+
static get FUNCTIONS(): Record<string, (args: Expression[], options: {
|
|
438
|
+
dialect: Dialect;
|
|
439
|
+
}) => Expression>;
|
|
440
|
+
static get FUNCTION_PARSERS(): Partial<Record<string, (this: Parser) => Expression | undefined>>;
|
|
441
|
+
static get PROPERTY_PARSERS(): Record<string, (this: Parser, ...args: unknown[]) => Expression | Expression[] | undefined>;
|
|
442
|
+
parsePartitionProperty(): Expression | Expression[] | undefined;
|
|
443
|
+
parsePartitioningGranularityDynamic(): PartitionByRangePropertyDynamicExpr;
|
|
444
|
+
parsePartitionRangeValue(): PartitionExpr;
|
|
445
|
+
parseBuildProperty(): BuildPropertyExpr;
|
|
446
|
+
parseRefreshProperty(): RefreshTriggerPropertyExpr;
|
|
447
|
+
}
|
|
448
|
+
declare class DorisGenerator extends MySQL.Generator {
|
|
449
|
+
static get AFTER_HAVING_MODIFIER_TRANSFORMS(): Map<string, (this: Generator, e: Expression) => string>;
|
|
450
|
+
static SUPPORTS_DECODE_CASE: boolean;
|
|
451
|
+
static TRY_SUPPORTED: boolean;
|
|
452
|
+
static SUPPORTS_UESCAPE: boolean;
|
|
453
|
+
static LAST_DAY_SUPPORTS_DATE_PART: boolean;
|
|
454
|
+
static VARCHAR_REQUIRES_SIZE: boolean;
|
|
455
|
+
static WITH_PROPERTIES_PREFIX: string;
|
|
456
|
+
static RENAME_TABLE_WITH_DB: boolean;
|
|
457
|
+
static UPDATE_STATEMENT_SUPPORTS_FROM: boolean;
|
|
458
|
+
static get TYPE_MAPPING(): Map<string, string>;
|
|
459
|
+
static get PROPERTIES_LOCATION(): Map<typeof Expression, PropertiesLocation>;
|
|
460
|
+
static get CAST_MAPPING(): {};
|
|
461
|
+
static get TIMESTAMP_FUNC_TYPES(): Set<DataTypeExprKind>;
|
|
462
|
+
static get ORIGINAL_TRANSFORMS(): Map<typeof Expression, (this: Generator, e: any) => string>;
|
|
463
|
+
static get RESERVED_KEYWORDS(): Set<string>;
|
|
464
|
+
uniqueKeyPropertySql(expression: UniqueKeyPropertyExpr, options?: {
|
|
465
|
+
prefix?: string;
|
|
466
|
+
}): string;
|
|
467
|
+
partitionRangeSql(expression: PartitionRangeExpr): string;
|
|
468
|
+
partitionByRangePropertyDynamicSql(expression: PartitionByRangePropertyDynamicExpr): string;
|
|
469
|
+
partitionedByPropertySql(expression: PartitionedByPropertyExpr): string;
|
|
470
|
+
tableSql(expression: TableExpr, options?: {
|
|
471
|
+
sep?: string;
|
|
472
|
+
}): string;
|
|
473
|
+
}
|
|
474
|
+
declare class Doris extends MySQL {
|
|
475
|
+
static DIALECT_NAME: Dialects;
|
|
476
|
+
static DATE_FORMAT: string;
|
|
477
|
+
static DATEINT_FORMAT: string;
|
|
478
|
+
static TIME_FORMAT: string;
|
|
479
|
+
static Tokenizer: typeof DorisTokenizer;
|
|
480
|
+
static Parser: typeof DorisParser;
|
|
481
|
+
static Generator: typeof DorisGenerator;
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export { Doris, DorisTokenizer };
|